package com.ethink.order.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.PrimitiveIterator;

/**
 * @author default
 * @version 1.0.0
 * @ClassName OrderServiceStatusFacade.java
 * @Description
 * @createTime 2022年12月16日 11:18:00
 */
@FeignClient(name = "ethink-order-service", path = "order-service/facade/v1/orderStatus", contextId = "OrderServiceStatusFacade")
public interface OrderServiceStatusFacade {


    /**
     * 预售单
     *
     * @param orderNo
     * @return
     */
    @PostMapping("/tobSaleOrderStatus")
    @ResponseBody
    Boolean tobSaleOrderStatus(@RequestBody List<String> orderNo);


    /**
     * todo 待定
     * 采购订单,入库完成状态
     *
     * @param orderNo
     * @return
     */
    @PostMapping("/purchaseOrderStatusFinish")
    @ResponseBody
    Boolean purchaseOrderStatusFinish(@RequestBody List<String> orderNo);


    /**
     * 采购退单,物流跟进完成
     *
     * @param orderNo
     * @return
     */
    @PostMapping("/purchaseReturnOrderStatusFinish")
    @ResponseBody
    Boolean purchaseReturnOrderStatusFinish(@RequestBody List<String> orderNo);


    /**
     * 销售单
     *
     * @param orderNo
     * @return
     */
    @PostMapping("/saleOrderStatusFinish")
    @ResponseBody
    Boolean saleOrderStatusFinish(@RequestBody List<String> orderNo);

    /**
     * 销售退单
     *
     * @param orderNo
     * @return
     */
    @PostMapping("/saleReturnOrderStatusFinish")
    @ResponseBody
    Boolean saleReturnOrderStatusFinish(@RequestBody List<String> orderNo);


    /**
     * 预售退单
     *
     * @param orderNo
     * @return
     */
    @PostMapping("/tobSaleReturnOrderStatusFinish")
    @ResponseBody
    Boolean tobSaleReturnOrderStatusFinish(@RequestBody List<String> orderNo);


    /**
     * 采购订单支付标识
     * @param orderNo
     * @return
     */
    @GetMapping("/purchasePayTag")
    @ResponseBody
    Boolean purchasePayTag(String orderNo);

}
